module.exports = {
  mergeWithArray: function(obj, ...src) {
    const _ = require('lodash')

    function customizer(objValue, srcValue) {
      if (_.isArray(objValue)) {
        return objValue.concat(srcValue)
      }
    }
    return _.mergeWith(obj, ...src, customizer)
  }
}
